﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
using DTO;

namespace Business
{
    public static class GoalTypeBUS
    {
        public static List<GoalTypeDTO> GetGoalTypeList()
        {
            return GoalTypeDAO.GetGoalTypeList();
        }
        
        public static bool IsGoalTypeNameExists(GoalTypeDTO dtoGoalType)
        {
            return GoalTypeDAO.FindGoalType(dtoGoalType,GoalTypeColumns .GOAL_TYPE_DESC  ) != null;
        }

        public static GoalTypeDTO FindGoalType(GoalTypeDTO dtoGoalType, string searchOption)
        {
            return GoalTypeDAO.FindGoalType(dtoGoalType, searchOption);
        }

        public static bool AddNewGoalType(GoalTypeDTO dtoGoalType)
        {
            return GoalTypeDAO.AddNewGoalType(dtoGoalType);
        }

        public static bool UpdateGoalType(GoalTypeDTO dtoGoalType)
        {
            return GoalTypeDAO.UpdateGoalType(dtoGoalType);
        }

        public static bool DeleteAGoalType(GoalTypeDTO dtoGoalType)
        {
            return GoalTypeDAO.DeleteAGoalType(dtoGoalType);
        }

        public static bool DeleteAllGoalType()
        {
            return GoalTypeDAO.DeleteAllGoalType();
        }
    }
}
